<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <base href="<%=basePath%>">   
  <title>My JSP 'listNews.JSP' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
        <!--[if IE]>
			<link rel="stylesheet" href="css/fixed_ie.css" type="text/css" />
		<![endif]-->
    <link rel="stylesheet" type="text/css" href="css/960.css">
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/text.css">
	<link rel="stylesheet" type="text/css" href="css/listNews.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.quickpaginate.js"></script>
	<script type="text/javascript" src="js/jquery.quickpaginate.packed.js"></script>
  </head>
  
  <body>
    <div class="container_12 menu">
    <ul>
    <li><a href="linkIndexAction.do">发布新闻页</a></li>
	<li><a href="linkListAction.do?xinwen">新闻</a></li>
    <li><a href="linkListAction.do?tongzhi">通知公告</a></li>
    <li><a href="linkListAction.do?dangzheng">党政工作</a></li>
    <li><a href="linkListAction.do?xuesheng">学生工作</a></li>
    <li><a href="linkListAction.do?zhaosheng">招生信息</a></li>
    <li><a href="linkListAction.do?jiaoxue">教学工作</a></li>
    <li><a href="linkListAction.do?hezuo">合作交流</a></li>
        <li><a href="linkListAction.do?xueshu">学术研究</a></li>
    <li><a href="linkListAction.do?keyan">科研项目</a></li>
    <li><a href="linkListAction.do?shixi">实习就业</a></li>
    <li><a href="linkListAction.do?wendang">文档下载</a></li>
        <li><a href="toModifyPassword.do">修改密码</a></li>
    <li><a href="logoutAction.do">退出登录</a></li>
    </ul>
    </div>
    <div class="container_12 ">
    <div class="listnews">
    <ul id="shopping_list">
    </ul>

    </div>
           <div id="shopping_list_counter"></div>


  <script type="text/javascript"> 
    var str=this.location.href;
	var myArray = new Array();
	myArray =str.split("?");
	$.ajax({
   		url: "showNewsAction.do?c_id="+myArray[1],
   		type:'get',
   		dataType:'json',
   		async: false,
   		success: function(msg){
   			for(var i=0;i<msg.toString().length;i++){
	     		$("#shopping_list").append("<li><div class='del'><a href=delNewsAction.do?id="+msg.news[i][0]+">删除</a></div>"
	     			+"<a href="+"newscon.html?id="
	     			+msg.news[i][0]
	     			+"><span class='dates'>"
	     			+msg.news[i][2]
	     			+"</span><div class='ellipsis'>"
	     			+msg.news[i][1]
	     			+"</div></a></li>"
	     			
	     			);
	     	}	
		}
	});

</script>
   <script type="text/javascript">
	$("#shopping_list li").quickpaginate({ perpage:15, pager : $("#shopping_list_counter") });
</script>


</div>
</body>
</html>

